package jmine.tec.hydra;

import org.springframework.transaction.TransactionStatus;

public abstract class TransactedTestCase extends HydraTestCase {
    private TransactionStatus txStatus;

    @Override
    public void setUp() throws Exception {
        super.setUp();
        this.txStatus = super.getHelper().getTransactionStatus();
    }

    @Override
    public void tearDown() throws Exception {
        super.getHelper().commit(this.txStatus);
        super.tearDown();
    }
}
